<div class="<?php echo $include_file;?>">
<form action="index.php?c=reader&a=update" method="post">
	<p><span>读者条形码</span><input type="number" name="barcode" value="<?php echo $data['barcode'];?>"  /></p>
	<p><span>姓名</span><input type="text" name="name" value="<?php echo $data['name'];?>"  /></p>
	<p><span>性别</span><input type="radio" name="sex" value="男" <?php echo $data['sex']=='男'?'checked':'';?> />男　
						<input type="radio" name="sex" value="女" <?php echo $data['sex']=='女'?'checked':'';?> />女</p>
	<p><span>职业</span><input type="text" name="vocation" value="<?php echo $data['vocation'];?>"  /></p>
	<p><span>生日</span><input type="date" name="birthday" value="<?php echo $data['birthday'];?>"  /></p>
	<p><span>证件类型</span><select name="paperType">
								<option value="身份证">身份证</option>
								<option value="学生证">学生证</option>
								<option value="军官证">军官证</option>
								<option value="工作证">工作证</option>
						</select>
	</p>
	<p><span>身份证</span><input type="text" name="paperNO" value="<?php echo $data['paperNO'];?>"  /></p>
	<p><span>电话</span><input type="tel" name="tel" value="<?php echo $data['tel'];?>"  /></p>
	<p><span>邮件</span><input type="text" name="email" value="<?php echo $data['email'];?>"  /></p>
	<p><span>读者类型</span>
		<select name="typeid">
			<?php foreach($types as $type):?>
			<option value="<?php echo $type['id'];?>" <?php echo $data['typeid']==$type['id']?'selected':'';?>>
				<?php echo $type['name']?>(<?php echo $type['number']?>)
			</option>
			<?php endforeach;?>
		</select>
		<input type="hidden" name="id" value="<?php echo $data['id'];?>" />
	</p>
	<p><span>备注</span><br /><textarea name="remark" rows="5" cols="40"><?php echo $data['remark'];?></textarea></p>
	<p><input type="submit" value="提交"/><input type="button" value="放弃修改" onclick="javascript: window.location.href='index.php?c=reader&a=index'"/></p>
</form>
</div>